/**
 * 
 */
package cn.nawang.ebeim.api.domain;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @ClassName: UserHaviorsLog
 * @Description: TODO(用户行为操作记录实体)
 * @author 阮志忠
 * @date 2015年11月17日 上午11:17:39
 * 
 */
@Entity
@Table(name = "tb_user_behaviors_log", catalog = "ebeim")
public class UserBeHaviorsLog {
    public final static String STATUS_SUCCESS = "success";
    public final static String STATUS_ERROR = "error";
    public final static String ACTION_UPLOAD = "upload";
    public final static String ACTION_DOWANLOAD = "download";
    private String id;
    private String action;
    private String dsId;
    private long beginTime;
    private long endTime;
    private long elapsedTime;
    private String log;
    private String userID;
    private String targetPath;
    private String result;
    private Date uploadTime = new Date();

    @Id
    @Column(name = "id", unique = true, nullable = false, length = 45)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "ds_id")
    public String getDsId() {
        return dsId;
    }

    public void setDsId(String dsId) {
        this.dsId = dsId;
    }


    @Column(name = "elapsed_time")
    public long getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    @Column(name = "action")
    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    @Column(name = "begin_time")
    public long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(long beginTime) {
        this.beginTime = beginTime;
    }

    @Column(name = "end_time")
    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    @Column(name = "log")
    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }
    @Column(name = "user_id")
    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }
    @Column(name = "target_path")
    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }
    @Column(name = "result")
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Column(name = "upload_time")
    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    public UserBeHaviorsLog(String id, String action, String dsId, long beginTime, long elapsedTime,
            String userID, String targetPath, String result) {
        super();
        this.id = id;
        this.action = action;
        this.dsId = dsId;
        this.beginTime = beginTime;
        this.elapsedTime = elapsedTime;
        this.userID = userID;
        this.targetPath = targetPath;
        this.result = result;
    }

    public UserBeHaviorsLog() {
        super();
    }
    
    


}
